<?php

declare(strict_types=1);

namespace app\admin\service;

use app\admin\common\ServiceResponse;
use app\admin\model\RegionCountry as RegionCountryModel;

class RegionCountry extends BaseService
{

    use ServiceResponse;

    protected $model;
    public function __construct()
    {
        Parent::__construct();
        $this->model = new RegionCountryModel();
    }


    /**
     * @describe 获取下拉框格式数据
     * @author: Bobo
     * @date: 2024-09-29 14:45:31
     * @param [type] @required
     * @return Renderable
     */
    public function selectOption()
    {
        $result = $this->model->getSelectOption([], "id,CONCAT(cname,' (',full_name,') ') as name");
        return $this->success(['list' => $result]);
    }



    /**
     * 执行服务
     *
     * @return mixed
     */
    public function boot()
    {
        //
    }
}
